function GetCount(serverNowDate, expireDate){
	serverNowDate++;
	amount = expireDate - serverNowDate;
	if (amount < 0) {
		document.getElementById('time_remained').innerHTML='Expired';
	} else {
		days=0;hours=0;mins=0;secs=0;out="";
		
		days=Math.floor(amount/86400);//days
		amount=amount%86400;

		hours=Math.floor(amount/3600);//hours
		amount=amount%3600;

		mins=Math.floor(amount/60);//minutes
		amount=amount%60;

		secs=Math.floor(amount);//seconds

		if(days != 0){out += days +" 天 ";}
		if(days != 0 || hours != 0){out += hours +" 小时 ";}
		if(days != 0 || hours != 0 || mins != 0){out += mins +" 分 ";}
		out += secs +" 秒";
		document.getElementById('time_remained').innerHTML=out;

		setTimeout('GetCount('+serverNowDate+', '+expireDate+');', 1000);
	}
}

